package net.bithappens.hnqe.query;

public class AtomAttribute extends Atom{
	
	private QueryElement element;
	private String attributeName;
	
	public AtomAttribute(QueryElement element, String attributeName) {
		this.element = element;
		this.attributeName = attributeName;
	}

	public String getId() {
		return element.getId();
	}

	public QueryElement getElement() {
		return element;
	}
	
	public String getAttributeName() {
		return attributeName;
	}

	@Override
	public String toString() {
		return "[AtomAttribute|attributeName:" + attributeName + " - "+element+"]";
	}
	
}
